package com.ee.chat.api.service;

import com.ee.chat.common.bean.Result;

public interface IWalletService{
    /**
     * 获取个人钱包
     * @Author Shane
     * @Date 2019/8/2019:56
     * @param
     * @return
     **/
    Result getMyWallect(String token) throws Exception;

    /**
     * 获取充值套餐
     * @Author Shane
     * @Date 2019/8/2211:50
     * @param
     * @return
     **/
    Result getRechargePackages(String token, Integer type) throws Exception;

    /**
     * 确认充值
     * @Author Shane
     * @Date 2019/8/2214:42
     * @param payWay  充值类型，0-微信  1-支付宝
     * @param packageId 套餐id
     * @return
     **/
    Result affirmRecharge(String token, Integer payWay, Integer packageId) throws Exception;

    /**
     * 获取充值记录
     * @Author Shane
     * @Date 2019/8/2217:32
     * @param
     * @return
     **/
    Result getRechargeLog(String token, Integer page, Integer limit) throws Exception;

    /**
     * 获取消费明细
     * @Author Shane
     * @Date 2019/8/2217:49
     * @param
     * @return
     **/
    Result getConsumeLog(String token, Integer page, Integer limit) throws Exception;

    /**
     * 获取积分兑换套餐列表
     * @Author Shane
     * @Date 2019/9/317:43
     * @param
     * @return
     **/
    Result getExchangePackages(String token) throws Exception;

    /**
     * 获取提现套餐列表
     * @Author Shane
     * @Date 2019/9/317:44
     * @param
     * @return
     **/
    Result getWithdrawPackages(String token) throws Exception;

    /**
     * 积分兑换
     * @Author Shane
     * @Date 2019/9/414:53
     * @param packageId 套餐id
     * @return
     **/
    Result exchangePackage(String token, Integer packageId) throws Exception;

    Result getExchangeLog(String token, Integer page, Integer limit) throws Exception;

    /**
     * 积分提现
     * @Author Shane
     * @Date 2019/9/414:59
     * @param packageId 套餐id
     * @param way   提现途径，0-微信  1-支付宝
     * @return
     **/
    Result withdrawPackage(String token, Integer packageId, Integer way) throws Exception;

    /**
     * 积分提现记录
     * @Author Shane
     * @Date 2019/10/6 18:41
     * @param
     * @return
     */
    Result getWithdrawLog(String token, Integer page, Integer limit) throws Exception;

    /***
     * 绑定打款方式
     * @Author Shane
     * @Date 2019/9/418:12
     * @param
     * @return
     **/
    Result bindPayWay(String token, Integer way, String payNo, String payName) throws Exception;

    Result getCreditLog(String token, Integer page, Integer limit) throws Exception;
}
